package com.wx_shop.api.vo;

import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 1、属性列表 2、价格列表 3、最低价-最高价
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProductPropVo {

	private List<PropVal> propVals; // 商品拥有的属性列表
	private Map<String, ProPriceVo> skuPrice; // 不同组合不同价格
	private String minPrice;
	private String maxPrice;

	public List<PropVal> getPropVals() {
		return propVals;
	}

	public void setPropVals(List<PropVal> propVals) {
		this.propVals = propVals;
	}

	public Map<String, ProPriceVo> getSkuPrice() {
		return skuPrice;
	}

	public void setSkuPrice(Map<String, ProPriceVo> skuPrice) {
		this.skuPrice = skuPrice;
	}

	public String getMinPrice() {
		return minPrice;
	}

	public void setMinPrice(String minPrice) {
		this.minPrice = minPrice;
	}

	public String getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(String maxPrice) {
		this.maxPrice = maxPrice;
	}

	/**
	 * {name:"", values: [{}, {}]} 属性名： 值列表
	 *
	 */
	public static class PropVal {
		private String name;
		private List<ProProductPropRelVo> values;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public List<ProProductPropRelVo> getValues() {
			return values;
		}

		public void setValues(List<ProProductPropRelVo> values) {
			this.values = values;
		}
	}

}
